<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
    	#a2{
				width: 100%;
				height: 600px;
				border-top: 1px solid rgb(238,238,238);
				border-bottom: 1px solid rgb(238,238,238);
				
			}
			#div3{
				margin: 67px auto;
				width: 1250px;
				height: 800px;
				
			}
			
			#div4{
				width: 300px;
				float: right;
			}
			
			#div3-2{
				float: left;
				width: 452px;
				height: 372px;
				box-shadow: 5px 5px 10px black;
				margin-top: 18px;
				
			}
			#div3-2-1{
				margin: 20px auto;
				width: 352px;
			}
			
			#div3-2-1>div:nth-child(1){
				font-size: 22px;
				font-weight: 400;
				float: left;
			}
			#div3-2-1>div:nth-child(2){
				float: right;
				line-height: 36px;
				font-size: 14px;
				}
			ins{
					color: rgb(200,15,42);
				}
			#div3-2-2{
				margin: 20px auto;
				width: 352px;
			}
    </style>
</head>
<body>
	<div id="a2">
				<div id="div3">
					<div id="div3-2">
						<div id="div3-2-1">
						<div>登录</div>
						<div>还没有账号？<ins>免费注册</ins></div>
						</div>
						<div  id="div3-2-2">
							<input id="name" style="width: 352px; height: 36px; margin-top: 27px;" type="text"  placeholder="  用户ID  |  您的ID或者昵称" value=""/>
							<input id="pwd" style="width: 352px; height: 36px; margin-top: 33px;" type="password" placeholder="  密  码   |  您的登录密码" value=""/>
							<div style="margin-top: 23px;">
								<input type="checkbox"  checked="checked"/>记住密码
								<div id="div3-2-2-1"><ins>忘记密码？</ins></div>
							</div>
							<input id="btn" style="width: 352px; height: 51px; margin-top: 21px;border-radius: 8px 8px 8px 8px;background: rgb(189,13,24); color: white;"  type="button" value="登录"/>
						</div>
					</div>	
				</div>
	</div>
			<script src="/bck/static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
			<script type="text/javascript">
				$(document).ready(function(){
					$("#btn").click(function(){
						$.ajax({
		                    type:"post",
		                    url:"/1.php",
		                    data:{
		                        name:$('#name').val(),
		                        pwd:$('#pwd').val()
		                    },
		                    success:function(mgs){
		                    	if(mgs==1){
		                    		window.location.href="/1.html";
		                    	}else{
		                    		alert(mgs);
		                    	}
                    		}
		                });
					});
				});
			</script>
</body>
</html>